<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="member.MemberProc"%>
<%@page import="comm.util.SoptHashMap"%>
<%@page import="comm.util.CommUtil"%>
<%@page import="statics.SoptVars"%>
<%@page import="java.util.ArrayList"%><div>
	<%if(session.isNew() || session.getAttribute("SESSION_MEMBER_SEQ")==null){ %>
		<script type="text/javascript">
			alarm("로그인 후 이용하실 수 있습니다.");
		</script>
	<%}else{
		MemberProc infoMem = new MemberProc();
		ArrayList lt = infoMem.getMembersGroup(session.getAttribute("SESSION_MEMBER_SEQ").toString());
		if(lt!=null){%>
		<h2><%=lt.size() %>개의 그룹(태그)</h2>
		<%for(int i=0;i<lt.size();i++){
			SoptHashMap tagM = (SoptHashMap)lt.get(i);%>  
			<div class="mainTagItem">
				<a href="javascript:callRegContentForm('<%=tagM.get("TAG_SEQ")%>','<%=tagM.get("TAG_TEXT")%>');"
				 style="font-size:<%=(Integer.parseInt(tagM.get("COUNT").toString())+1)*0.1+1%>em;
				 <%=(Integer.parseInt(tagM.get("COUNT").toString())+1)>10?"font-weight:bold;":"" %>">
					<%=tagM.get("TAG_TEXT")%><span><%=tagM.get("COUNT").toString().equals("0")?"":tagM.get("COUNT")%></span>
				</a>
			</div>
			<%}%>
			<div class="clear"></div>
		<%}else{ %>
		<div>등록된 글이 없어 그룹(태그)가 없습니다.</div>
		<%} %>
	<%} %>
</div>